import request from '@/utils/request'

// 查询加盟产品列表
export function listAffiliateprod(query) {
  return request({
    url: '/system/affiliateprod/list',
    method: 'get',
    params: query
  })
}

// 查询加盟产品详细
export function getAffiliateprod(affiliateprodId) {
  return request({
    url: '/system/affiliateprod/' + affiliateprodId,
    method: 'get'
  })
}

// 新增加盟产品
export function addAffiliateprod(data) {
  return request({
    url: '/system/affiliateprod',
    method: 'post',
    data: data
  })
}

// 修改加盟产品
export function updateAffiliateprod(data) {
  return request({
    url: '/system/affiliateprod',
    method: 'put',
    data: data
  })
}

// 删除加盟产品
export function delAffiliateprod(affiliateprodId) {
  return request({
    url: '/system/affiliateprod/' + affiliateprodId,
    method: 'delete'
  })
}

// 导出加盟产品
export function exportAffiliateprod(query) {
  return request({
    url: '/system/affiliateprod/export',
    method: 'get',
    params: query
  })
}